package pers.vic.practice.base.handler.json;

import pers.vic.boot.util.redis.JedisUtil;

/**
 * 描述:短暂的缓存append json
 * @author Vic.xu
 * @date 2022-04-19 10:55
 */
public class CacheAppendJson {

    private static final int CACHE_SECOND = 30;

    private static final String PREFIX = "append_json:";

    public static String get(String key) {
        return JedisUtil.get(PREFIX + key);
    }

    public static void set(String key, String value) {
        JedisUtil.set(PREFIX + key, value, CACHE_SECOND);
    }
}
